package com.example.userservice.controller.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

@Component
@FeignClient(value = "third-service", fallback = UserServiceImpl.class)
public interface UserService {

    @GetMapping("/getThird")
    String getThird();

    @GetMapping("/timeout")
    String timeout();
}
